#pragma once

class CoordRef
{
public:
    static CoordRef& Instance()
    {
        static CoordRef singleton;
        return singleton;
    }
    bool WGS2GKP(double longitude, double latitude, double altitude, double& x, double& y, double& z);
    int  GetZoneID(double longitude);
    double GetZoneMeridian(int nZoneID);
private:
    CoordRef();
    ~CoordRef();
    void* gkp_;
    void* wgs84_;
    int cur_zoneID_;
};